package com.bootx.entity;

import jakarta.persistence.*;

/**
 * @author black
 */
@Entity
public class Agent extends OrderedEntity<Long>{

    @JoinColumn(nullable = false,updatable = false)
    @ManyToOne(fetch = FetchType.LAZY)
    private AgentCategory agentCategory;

    @Column(nullable = false)
    private String name;

    @Column(nullable = false)
    private String description;

    private String icon;

    public AgentCategory getAgentCategory() {
        return agentCategory;
    }

    public void setAgentCategory(AgentCategory agentCategory) {
        this.agentCategory = agentCategory;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public String getIcon() {
        return icon;
    }

    public void setIcon(String icon) {
        this.icon = icon;
    }
}
